<?xml version="1.0" encoding="UTF-8" ?>
<INSUREQ>
    <HEAD>
        <TRANSRNO>CIC1010</TRANSRNO>
        <PARTNERCODE>${facadeAppForm.partnerNo}</PARTNERCODE>
        <PARTNERSUBCODE>${facadeAppForm.partneSaleNo}</PARTNERSUBCODE>
    </HEAD>
    <MAIN>
        <PRODUCTCODE><#if facadeAppForm.insuPlanNo??>${facadeAppForm.insuPlanNo}</#if></PRODUCTCODE>
        <SERIALNUMBER><#if SERIALNUMBER??>${SERIALNUMBER}</#if></SERIALNUMBER>
        <TRANSRDATE>${.now?string("yyyy-MM-dd HH:mm:ss")}</TRANSRDATE>
        <PRODUCTUNIT><#if facadeAppForm.unirPp??>${facadeAppForm.unirPp}</#if></PRODUCTUNIT>
        <EFFDATE><#if facadeAppForm.stringEffDate??>${facadeAppForm.stringEffDate}</#if></EFFDATE>
        <TERMDATE><#if facadeAppForm.stringTermDate??>${facadeAppForm.stringTermDate}</#if></TERMDATE>
        <BBRUNIT><#if facadeAppForm.insuredCount??>${facadeAppForm.insuredCount?c}</#if></BBRUNIT>
        <APPCONTENT><#if facadeAppForm.trip??>${facadeAppForm.trip}</#if></APPCONTENT>
        <USERCODE><#if USERCODE??>${USERCODE}</#if></USERCODE>
        <CARD_NO><#if cardNo??>${cardNo}</#if></CARD_NO>
        <#if facadeAppFormExtend.mainVehicleNature??>
            <VEHICLENATURE>${facadeAppFormExtend.mainVehicleNature}</VEHICLENATURE>
        </#if>
    </MAIN>
   <HEALPOLICYINFO>
  		<#if facadeAppApplicant??>
            <TBR>
                <TBRNAME><#if facadeAppApplicant.clientName??>${facadeAppApplicant.clientName}</#if></TBRNAME>
                <TBRIDTYPE><#if facadeAppApplicant.certificateType??>${facadeAppApplicant.certificateType}</#if></TBRIDTYPE>
                <TBRIDNO><#if facadeAppApplicant.certificateCode??>${facadeAppApplicant.certificateCode}</#if></TBRIDNO>
                <TBRBIRTH><#if facadeAppApplicant.clientBir??>${facadeAppApplicant.clientBir}</#if></TBRBIRTH>
            </TBR>
        </#if>
        <#if facadeAppInsureds??>
         <BBRS>
            <#list facadeAppInsureds as facadeAppInsured>
                <BBR>
                    <BBRNAME><#if facadeAppInsured.clientName??>${facadeAppInsured.clientName}</#if></BBRNAME>
                    <BBRIDTYPE><#if facadeAppInsured.idType??>${facadeAppInsured.idType}</#if></BBRIDTYPE>
                    <BBRIDNO><#if facadeAppInsured.idNo??>${facadeAppInsured.idNo}</#if></BBRIDNO>
                    <BBRBIRTH><#if facadeAppInsured.clientBir??>${facadeAppInsured.clientBir}</#if></BBRBIRTH>
                </BBR>
            </#list>
        </BBRS>
       </#if>
       <#if facadeAppFormExtend??>
           	<#if facadeAppFormExtend.plateNum??||facadeAppFormExtend.chassisNum??>
            	<CARINFO>
                	<LICENSENO><#if facadeAppFormExtend.plateNum??>${facadeAppFormExtend.plateNum}</#if></LICENSENO>
                    <FRAMENO><#if facadeAppFormExtend.chassisNum??>${facadeAppFormExtend.chassisNum}</#if></FRAMENO>
                </CARINFO>        
        	</#if>
       </#if>
        <ANESTHTYPE><#if ANESTHTYPE??>${ANESTHTYPE}</#if></ANESTHTYPE>
   </HEALPOLICYINFO>
</INSUREQ>